/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kallsonys.object;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;

/**
 *
 * @author allan
 */
@Entity
@Table(name = "VCATEGORY")
@XmlRootElement
@XmlSeeAlso({ Vcategory.class }) 
@NamedQueries({
    @NamedQuery(name = "Vcategory.findAll", query = "SELECT v FROM Vcategory v"),
    @NamedQuery(name = "Vcategory.findByCategoryid", query = "SELECT v FROM Vcategory v WHERE v.categoryid = :categoryid"),
    @NamedQuery(name = "Vcategory.findByCategorydescription", query = "SELECT v FROM Vcategory v WHERE v.categorydescription = :categorydescription")})
public class Vcategory implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 4000)
    @Column(name = "CATEGORYID")
    private String categoryid;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 4000)
    @Column(name = "CATEGORYDESCRIPTION")
    private String categorydescription;

    public Vcategory() {
    }

    public String getCategoryid() {
        return categoryid;
    }

    public void setCategoryid(String categoryid) {
        this.categoryid = categoryid;
    }

    public String getCategorydescription() {
        return categorydescription;
    }

    public void setCategorydescription(String categorydescription) {
        this.categorydescription = categorydescription;
    }
    
}
